<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/statics/css/update.css?v=20200825">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css?v=20200825">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <script type="text/javascript" src="${ctx}/appjs/finance/index.js"></script>
    <script src="${ctx}/libjs/plugins/highcharts/highcharts.js"></script>
    <script src="${ctx}/libjs/plugins/highcharts/exporting.js"></script>
    <script src="${ctx}/libjs/plugins/highcharts/series-label.js"></script>
    <script src="${ctx}/libjs/plugins/highcharts/oldie.js"></script>
    <script src="${ctx}/libjs/plugins/highcharts/highcharts-zh_CN.js"></script>
    <script type="text/javascript" src="${ctx}/appjs/elec/elecStation.js"></script>
    <style>
        .active {
            background-color: #fff !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>财务报表</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });
    $(function(){
        $('#myTabs a').click(function (e) {
            e.preventDefault()
            $('#myTabs li').removeClass("active");
            $(this).parent().addClass('active');
            var _href = $(this).attr("href");
            if(_href==='#chargePanel'){
                financialStatement.loadChart(0);
            }else{
                financialStatement.loadChart(1);
            }
            $(this).tab('show')
        })
        financialStatement.init();
    });
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist" id="myTabs">
                    <li role="presentation" class="active"><a href="#chargePanel" aria-controls="chargePanel" role="tab" data-toggle="tab">充电</a></li>
                    <li role="presentation"><a href="#joinInPanel" aria-controls="joinInPanel" role="tab" data-toggle="tab">加盟</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active" id="chargePanel">
                        <div class="ibox-body">
                            <div class="row">
                                <label for="provinceId" style="line-height: 30px;">区域：</label>
                                <select name="provinceId" id="provinceId"
                                        class="form-control chosen-select"
                                        style="width: 100%" onchange="station.getCity()">
                                    <option value="" selected="selected">--请选择省--</option>
                                    <c:forEach items="${provinces}" var="province">
                                        <option value="${province.provinceId}">${province.provinceName}</option>
                                    </c:forEach>
                                </select>
                                <select name="cityId" id="cityId"
                                        class="form-control chosen-select"
                                        style="width: 100%;margin-left: 5px;" onchange="station.getArea()">
                                    <option value="" selected="selected">${pileGroup.joinCity.city}</option>
                                </select>
                                <select id="areaId" name="areaId" style="margin-left: 5px;" class="form-control" placeholder="市区">
                                    <option value="" selected="selected">${pileGroup.joinArea.area}</option>
                                </select>
                                <label for="stationName" style="line-height: 30px;margin-left: 20px;">站点：</label>
                                <input id="stationName" type="text" class="form-control"
                                       placeholder="请输入站点名称">
                                <button style="margin-left: 20px;"class="btn btn-success input-distance" onclick="financialStatement.loadChart(0)">查询</button>
                                <button class="btn btn-default input-distance" style="height: 31px;" onclick="financialStatement.reset()">重置</button>
                                <div class="pull-left search fr" style="margin-left: 100px;">
                                    <button class="btn btn-success exportBtn" onclick="financialStatement.exportFile(0)">导出</button>
                                </div>
                            </div>
                            <div content="row" style="background-color: #fff;padding-top: 40px;">
                                <div id="loadBox0" style="max-width: 320px; height: 400px;  margin: 0 auto; overflow: hidden; margin-top: 50px;">
                                    <img src="${ctx}/statics/img/newEdition/pageLoading.gif" alt="">
                                </div>
                                <div id="container0" style="max-width: 800px; height: 400px;  margin: 0 auto; overflow: hidden; margin-top: 50px" data-highcharts-chart="0"></div>
                            </div>
                        </div>
                    </div>
                    <div role="tabpanel" class="tab-pane" id="joinInPanel">
                        <div class="ibox-body">
                            <div class="row">
                                <label for="stationName2" style="line-height: 30px;">站点：</label>
                                <input id="stationName2" type="text" class="form-control"
                                       placeholder="请输入站点名称">
                                <button style="margin-left: 20px;"class="btn btn-success input-distance" onclick="financialStatement.loadChart(1)">查询</button>
                                <button class="btn btn-default input-distance" style="height: 31px;" onclick="financialStatement.reset()">重置</button>
                                <div class="pull-left search fr" style="margin-left: 100px;">
                                    <button class="btn btn-success exportBtn" onclick="financialStatement.exportFile(1)">导出</button>
                                </div>
                            </div>
                            <div content="row" style="background-color: #fff;padding-top: 40px;">
                                <div id="loadBox1" style="max-width: 320px; height: 400px;  margin: 0 auto; overflow: hidden; margin-top: 50px;">
                                    <img src="${ctx}/statics/img/newEdition/pageLoading.gif" alt="">
                                </div>
                                <div id="container1" style="max-width: 800px; height: 400px;  margin: 0 auto; overflow: hidden; margin-top: 50px" data-highcharts-chart="0"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
